const matutaions = {
  SET_SINGER(state, singer) {
    state.singer = singer
  },
  SET_PLAYING_STATE(state, flag) {
    state.playing = flag
  },
  SET_FULL_SCREEN(state, flag) {
    state.fullScreen = flag
  },
  SET_PLAYLIST(state, list) {
    state.playList = list
  },
  SET_SEQUENCE_LIST(state, list) {
    state.sequenceList = list
  },
  SET_PLAY_MODE(state, mode) {
    state.mode = mode
  },
  SET_CURRENT_INDEX(state, index) {
    state.currentIndex = index
  },
  // 创建歌单对象
  SET_SONGSHEET(state, sheet) {
    state.songsheet = sheet
  },
  // 设置歌单类型：
  SET_SONGSHEET_TYPE(state, type) {
    state.songsheetType = type
  },
  // 修改搜索历史记录
  SET_SEARCH_HISTORY(state, history) {
    state.searchHistory = history
  },
  //修改播放器默认设置
  SET_PLAYER_OPTIONS(state, opts) {
    state.opts = opts
  },
  // 修改播放历史：
  SET_PLAY_HISTORY(state, history) {
    state.playHistory = history
  },
  // 修改离线模式下喜欢的列表
  SET_FAVORITE_LIST(state, list) {
    state.favoriteList = list
  },
  SET_USER_INFO(state, info) {
    state.loginInfo = info;
  },
  SET_USER_LIKELIST(state, list) {
    state.userLikeList = list
  }
}
export default matutaions
